package com.usian.apis.article;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface AuthorControllerApi {
     ApAuthor findByUserId(@PathVariable("id") Integer id);


     ResponseResult save(@RequestBody ApAuthor apAuthor);
     /**
      * 根据名称查询作者
      * @param name
      * @return
      */
     ApAuthor findByName(@PathVariable("id") String name);
     public ApAuthor findById(@PathVariable("id") Integer id);
}
